package se.kth.id2212.market;

import java.io.Serializable;

public class Item implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String name;
	public String trader;
	public int amount;
	public float price;
	
	public Item(String name, float price, int amount, String trader){
		this.name = name;
		this.price = price;
		this.amount = amount;
		this.trader = trader;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public void setPrice(float price){
		this.price = price;
	}
	
	public void setTraderName(String name){
		this.trader= name;
	}
	
	public void setAmount(int num){
		this.amount = num;
	}
	
	public String getName(){
		return name;
	}
	
	public float getPrice(){
		return price;

	}
	
	public int getAmount(){
		return amount;
	}
	
	public String getTrader(){
		return trader;
	}
}
